const router = require('koa-router')()
const Controller = require('../controllers/hanziStrokeController')

router.prefix('/stroke')

router.get('/', Controller.getAllHanziStrokes)
router.get('/:id', Controller.getHanziStrokeById)
router.post('/', Controller.createHanziStroke)
router.put('/:id', Controller.updateHanziStroke)
router.delete('/:id', Controller.deleteHanziStroke)

module.exports = router
